package com.javacv.plus.extensions.video.steps;

import com.javacv.plus.core.processor.ProcessorContext;
import com.javacv.plus.core.processor.ProcessorStep;
import com.javacv.plus.extensions.video.VideoProcessor;
import com.javacv.plus.extensions.video.VideoResult;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class VideoTrimStep implements ProcessorStep<VideoProcessor, VideoResult> {
    
    private final double startSeconds;
    private final double durationSeconds;
    
    public VideoTrimStep(double startSeconds, double durationSeconds) {
        this.startSeconds = startSeconds;
        this.durationSeconds = durationSeconds;
    }
    
    @Override
    public VideoResult execute(VideoProcessor processor, ProcessorContext context) throws Exception {
        log.info("裁剪视频: 从{}秒开始，持续{}秒", startSeconds, durationSeconds);
        return null;
    }
    
    @Override
    public String getStepName() {
        return "VideoTrim";
    }
} 